# 编写函数，接收字符串参数，返回⼀个元组，其中第⼀个元素为⼤写字⺟个数，第⼆个元素为⼩写
# 字⺟个数
def str_num(str):
    low_num = 0
    up_num = 0
    for i in str:
        if i.isupper():
            up_num += 1
        elif i.islower():
            low_num += 1

    return (up_num,low_num)

str1 = 'abc  ,,,AAAAA'
print(str_num(str1))